package com.cwd.arm.application.dto.receiveNode;


import lombok.Data;

/**
 * Created by yan on 21-11-30.
 */
@Data
public class ReceiveNodeAddDto implements Comparable<ReceiveNodeAddDto>{

    private Long projectId;

    private String nodeName;

    private String type;

    private String nodeCondition;

    private java.util.Date endDate;

    private java.math.BigDecimal receivableAmount;

    private java.math.BigDecimal rate;

    private java.math.BigDecimal closeAmount;

    @Override
    public int compareTo(ReceiveNodeAddDto o) {
        return o.getEndDate().compareTo(endDate);
    }
}
